<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<title>添加用户界面</title>
</head>
<body>
<div class="container">
	<form  action="${pageContext.request.contextPath }/user/addUser" method="post" enctype="multipart/form-data">
	  <div class="form-group">
	    <label for="exampleInputPassword1">用户名</label>
	    <input type="text" style="width: 300px; " class="form-control" id="exampleInputPassword1" name="name" placeholder="Name">
	  </div>
	 
	  <div class="form-group">
	    <label for="exampleInputFile">照片</label>
	    <input type="file" id="exampleInputFile" name="file">
	  </div>
	  <label for="exampleInputFile">部门</label>
		<select name="dept.did">
			<c:if test="${not empty deptList }">
				<c:forEach items="${deptList }" var="d">
					<option value="${d.did }">${d.dname }</option>
				</c:forEach>
			</c:if>
		</select><br>
	  <button type="submit" class="btn btn-default">Submit</button>
	</form>
</div>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>